package com.tree;

public class PrintTree {

	
	public void print(TreeNode root){
		
		if (root.left != null) {
			this.print(root.left);
		}
		
		System.out.print(" " + root.val);
		
		if (root.right != null) {
			this.print(root.right);
		}
		
//		System.out.println("left:" + root.left);
//		System.out.println("right:" + root.right);
	}
	
}
